﻿namespace Yz.Base
{
    public class ApiData<T> where T : class
    {
        public string errcode { get; set; }

        public string errmsg { get; set; }
        public int total { get; set; }

        public T data { get; set; }
    }

    public struct ApiDataCode
    {
        public const string success = "10";
        public const string error = "-1";
        public const string tokenFail = "00";
    }

    public struct ApiDataMsg
    {
        public const string success = "成功";
        public const string error = "失败";
        public const string tokenFail = "token无效";
    }
}
